module.exports = function toggleState(state, bool) {
  bool = typeof bool === 'boolean' ? bool : !this.state[state];
  this.setState({
    [state]: bool
  });
};
